import request from '@/utils/request'

/**
 * 查询权益分类列表
 * http://192.168.88.247:4999/web/#/80/1634
 * @returns
 */
export function classList (params) {
  return request({
    url: '/v1/right/cat/list',
    method: 'get',
    params
  })
}
/**
 * 编辑权益分类列表
 * http://192.168.88.247:4999/web/#/80/1633
 * @returns
 */
export function updateClass (data) {
  return request({
    url: '/v1/right/cat/update',
    method: 'put',
    data
  })
}
/**
 * 新增权益分类
 * http://192.168.88.247:4999/web/#/80/1632
 * @returns
 */
export function addClass (data) {
  return request({
    url: '/v1/right/cat/add',
    method: 'post',
    data
  })
}
/**
 * 新增权益分类
 * http://192.168.88.247:4999/web/#/80/1635
 * @returns
 */
export function delClass (data) {
  return request({
    url: '/v1/right/cat/del',
    method: 'delete',
    data
  })
}
